﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace tpsmi1002
{
    public class Transaction
    {
        private int idTransaction;
        private Stock stock;
        private DateTime purchaseDate;
        private double purchasePrice;
        private int quantity;

        public Transaction() { }

        public Transaction(int _id, Stock _stock, DateTime _purchaseDate, double _purchasePrice, int _quantity)
        {
            this.idTransaction = _id;
            this.stock = _stock;
            this.purchaseDate = _purchaseDate;
            this.purchasePrice = _purchasePrice;
            this.quantity = _quantity;
        }

        public int IdTransaction
        {
            get { return this.idTransaction; }
        }

        public Stock Stock
        {
            get { return this.stock; }
        }

        public DateTime PurchaseDate
        {
            get { return this.purchaseDate; }
        }

        public double PurchasePrice
        {
            get { return this.purchasePrice; }
        }

        public int Quantity
        {
            get { return this.quantity; }
            set { this.quantity = value; }
        }
    }
}
